home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / FireMan.swf / scripts / frame_1055 / PlaceObject2_230_1137 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2008-09-12  |  614b  |  33 lines

  1. onClipEvent(enterFrame){
  2.    if(_visible)
  3.    {
  4.       this.gotoAndStop(1);
  5.       if(_X >= 256 || _X <= 0 || impact)
  6.       {
  7.          if(!u)
  8.          {
  9.             this.gotoAndStop("hit");
  10.             u = 1;
  11.          }
  12.          else
  13.          {
  14.             _X = 120;
  15.             _Y = -1000;
  16.             this.gotoAndStop(1);
  17.             heroe.shooting = false;
  18.             _visible = false;
  19.             u = 0;
  20.          }
  21.       }
  22.       else
  23.       {
  24.          _X = _X + (dx - heroe.scrollspeed);
  25.          _Y = _Y - heroe.vscrollspeed;
  26.       }
  27.    }
  28.    else
  29.    {
  30.       impact = false;
  31.    }
  32. }
  33.